.class public Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$Builder;
.super Ljava/lang/Object;
.source "FloatingActionMenu.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x9
    name = "Builder"
.end annotation


# instance fields
.field private actionView:Landroid/view/View;

.field private animated:Z

.field private animationHandler:Lcom/zuimeia/ui/floatingactionmenu/animation/MenuAnimationHandler;

.field private endAngle:I

.field private radius:I

.field private startAngle:I

.field private stateChangeListener:Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$MenuStateChangeListener;

.field private subActionItems:Ljava/util/ArrayList;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/ArrayList",
            "<",
            "Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$Item;",
            ">;"
        }
    .end annotation
.end field


# direct methods
.method public constructor <init>(Landroid/content/Context;)V
    .registers 4
    .param p1, "context"    # Landroid/content/Context;

    .prologue
    .line 894
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 895
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$Builder;->subActionItems:Ljava/util/ArrayList;

    .line 897
    invoke-virtual {p1}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v0

    sget v1, Lcom/zuimeia/ui/R$dimen;->action_menu_radius:I

    invoke-virtual {v0, v1}, Landroid/content/res/Resources;->getDimensionPixelSize(I)I

    move-result v0

    iput v0, p0, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$Builder;->radius:I

    .line 898
    const/16 v0, 0xb4

    iput v0, p0, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$Builder;->startAngle:I

    .line 899
    const/16 v0, 0x10e

    iput v0, p0, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$Builder;->endAngle:I

    .line 900
    new-instance v0, Lcom/zuimeia/ui/floatingactionmenu/animation/DefaultAnimationHandler;

    invoke-direct {v0}, Lcom/zuimeia/ui/floatingactionmenu/animation/DefaultAnimationHandler;-><init>()V

    iput-object v0, p0, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$Builder;->animationHandler:Lcom/zuimeia/ui/floatingactionmenu/animation/MenuAnimationHandler;

    .line 901
    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$Builder;->animated:Z

    .line 902
    return-void
.end method


# virtual methods
.method public addSubActionView(ILandroid/content/Context;)Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$Builder;
    .registers 4
    .param p1, "resId"    # I
    .param p2, "context"    # Landroid/content/Context;

    .prologue
    .line 949
    const/4 v0, 0x0

    invoke-virtual {p0, p1, p2, v0}, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$Builder;->addSubActionView(ILandroid/content/Context;Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$OnActionMenuClickListener;)Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$Builder;

    move-result-object v0

    return-object v0
.end method

.method public addSubActionView(ILandroid/content/Context;Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$OnActionMenuClickListener;)Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$Builder;
    .registers 8
    .param p1, "resId"    # I
    .param p2, "context"    # Landroid/content/Context;
    .param p3, "listener"    # Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$OnActionMenuClickListener;

    .prologue
    const/4 v3, 0x0

    .line 953
    const-string v2, "layout_inflater"

    invoke-virtual {p2, v2}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/view/LayoutInflater;

    .line 954
    .local v0, "inflater":Landroid/view/LayoutInflater;
    const/4 v2, 0x0

    invoke-virtual {v0, p1, v2, v3}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View;

    move-result-object v1

    .line 955
    .local v1, "view":Landroid/view/View;
    invoke-virtual {v1, v3, v3}, Landroid/view/View;->measure(II)V

    .line 956
    invoke-virtual {v1}, Landroid/view/View;->getMeasuredWidth()I

    move-result v2

    invoke-virtual {v1}, Landroid/view/View;->getMeasuredHeight()I

    move-result v3

    invoke-virtual {p0, v1, v2, v3, p3}, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$Builder;->addSubActionView(Landroid/view/View;IILcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$OnActionMenuClickListener;)Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$Builder;

    move-result-object v2

    return-object v2
.end method

.method public addSubActionView(Landroid/view/View;)Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$Builder;
    .registers 3
    .param p1, "subActionView"    # Landroid/view/View;

    .prologue
    .line 932
    const/4 v0, 0x0

    invoke-virtual {p0, p1, v0}, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$Builder;->addSubActionView(Landroid/view/View;Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$OnActionMenuClickListener;)Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$Builder;

    move-result-object v0

    return-object v0
.end method

.method public addSubActionView(Landroid/view/View;IILcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$OnActionMenuClickListener;)Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$Builder;
    .registers 7
    .param p1, "subActionView"    # Landroid/view/View;
    .param p2, "width"    # I
    .param p3, "height"    # I
    .param p4, "listener"    # Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$OnActionMenuClickListener;

    .prologue
    .line 920
    iget-object v0, p0, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$Builder;->subActionItems:Ljava/util/ArrayList;

    new-instance v1, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$Item;

    invoke-direct {v1, p1, p2, p3, p4}, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$Item;-><init>(Landroid/view/View;IILcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$OnActionMenuClickListener;)V

    invoke-virtual {v0, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 921
    return-object p0
.end method

.method public addSubActionView(Landroid/view/View;Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$OnActionMenuClickListener;)Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$Builder;
    .registers 4
    .param p1, "subActionView"    # Landroid/view/View;
    .param p2, "listener"    # Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$OnActionMenuClickListener;

    .prologue
    const/4 v0, 0x0

    .line 936
    invoke-virtual {p0, p1, v0, v0, p2}, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$Builder;->addSubActionView(Landroid/view/View;IILcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$OnActionMenuClickListener;)Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$Builder;

    move-result-object v0

    return-object v0
.end method

.method public attachTo(Landroid/view/View;)Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$Builder;
    .registers 2
    .param p1, "actionView"    # Landroid/view/View;

    .prologue
    .line 993
    iput-object p1, p0, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$Builder;->actionView:Landroid/view/View;

    .line 994
    return-object p0
.end method

.method public build()Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;
    .registers 10

    .prologue
    .line 998
    new-instance v0, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;

    iget-object v1, p0, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$Builder;->actionView:Landroid/view/View;

    iget v2, p0, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$Builder;->startAngle:I

    iget v3, p0, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$Builder;->endAngle:I

    iget v4, p0, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$Builder;->radius:I

    iget-object v5, p0, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$Builder;->subActionItems:Ljava/util/ArrayList;

    iget-object v6, p0, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$Builder;->animationHandler:Lcom/zuimeia/ui/floatingactionmenu/animation/MenuAnimationHandler;

    iget-boolean v7, p0, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$Builder;->animated:Z

    iget-object v8, p0, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$Builder;->stateChangeListener:Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$MenuStateChangeListener;

    invoke-direct/range {v0 .. v8}, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;-><init>(Landroid/view/View;IIILjava/util/ArrayList;Lcom/zuimeia/ui/floatingactionmenu/animation/MenuAnimationHandler;ZLcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$MenuStateChangeListener;)V

    return-object v0
.end method

.method public disableAnimations()Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$Builder;
    .registers 2

    .prologue
    .line 977
    const/4 v0, 0x0

    iput-boolean v0, p0, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$Builder;->animated:Z

    .line 978
    return-object p0
.end method

.method public enableAnimations()Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$Builder;
    .registers 2

    .prologue
    .line 972
    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$Builder;->animated:Z

    .line 973
    return-object p0
.end method

.method public setAnimationHandler(Lcom/zuimeia/ui/floatingactionmenu/animation/MenuAnimationHandler;)Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$Builder;
    .registers 2
    .param p1, "animationHandler"    # Lcom/zuimeia/ui/floatingactionmenu/animation/MenuAnimationHandler;

    .prologue
    .line 967
    iput-object p1, p0, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$Builder;->animationHandler:Lcom/zuimeia/ui/floatingactionmenu/animation/MenuAnimationHandler;

    .line 968
    return-object p0
.end method

.method public setEndAngle(I)Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$Builder;
    .registers 2
    .param p1, "endAngle"    # I

    .prologue
    .line 910
    iput p1, p0, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$Builder;->endAngle:I

    .line 911
    return-object p0
.end method

.method public setRadius(I)Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$Builder;
    .registers 2
    .param p1, "radius"    # I

    .prologue
    .line 915
    iput p1, p0, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$Builder;->radius:I

    .line 916
    return-object p0
.end method

.method public setStartAngle(I)Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$Builder;
    .registers 2
    .param p1, "startAngle"    # I

    .prologue
    .line 905
    iput p1, p0, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$Builder;->startAngle:I

    .line 906
    return-object p0
.end method

.method public setStateChangeListener(Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$MenuStateChangeListener;)Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$Builder;
    .registers 2
    .param p1, "listener"    # Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$MenuStateChangeListener;

    .prologue
    .line 982
    iput-object p1, p0, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$Builder;->stateChangeListener:Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$MenuStateChangeListener;

    .line 983
    return-object p0
.end method
